import { createApp } from "vue";
import App from "./App.vue";
import {router} from './router'
import { createPinia } from 'pinia'
import { registerStore } from "./store";
import * as ElementPlusIconsVue from '@element-plus/icons-vue';

import '@/styles/index.scss'
import 'element-plus/theme-chalk/src/message.scss'
import 'element-plus/theme-chalk/src/message-box.scss'

import 'uno.css'

const app = createApp(App);
app.use(router)
app.use(createPinia())
registerStore()
app.mount("#app");

//注册Icon图标
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
    app.component(key, component)
}